<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Login extends Model
{
    use HasFactory;
    protected $table='admin';
    protected $guarded=[];
    //模型关联角色
    public function role(){
        return $this->belongsTo(RoleModel::class,'role_id');
    }
}
